﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_SetUp.Departments
{
    /// <summary>
    /// 部门管理-张笑宇
    /// </summary>
    public class TMS_Department : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        [Required(ErrorMessage = ("部门名称不能为空"))]
        [StringLength(20)]
        public string Department_Name { get; set; }
        /// <summary>
        /// 上级部门
        /// </summary>
        [Required(ErrorMessage = ("上级部门不能为空"))]
        [StringLength(150)]
        public string Department_Superior { get; set; }
        /// <summary>
        /// 删除
        /// </summary>
        public bool Department_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Department_DateTime { get; set; } = DateTime.Now;
    }
}
